//const domain = "http://www.yiishop.com/"
const domain="https://wx.engconn.com/"
const updomain="https://wx.engconn.com"
const baseurl = domain + "backend/web/index.php?r="
const upurl = domain + "backend/web/"
const server_up = "http://app.jzdzsw.cn/backend/web/";
const local="http://www.yiishop.com/backend/web/index.php?r="
const api = {
  domain:domain,
  updomain:updomain,
  wxid:2,
  scope:5000000,
  getGyToken:domain+"dev/get_token",//获取会话token
  getopenid:domain+"dev/weapp/login",
  deuserinfo:domain+"dev/wxapp/get_user_info",//解密用户信息
  lat_list:domain+"dev/basework/get_lat_list",
  device_sets:domain+"dev/eq/getall",
  tel_login:domain+"dev/wxapp/tel_login",
  jz_detail:domain+"dev/basework/get_data",
  jz_sn:domain+"dev/device/get_basework_sn",
  jz_normal_list:domain+'dev/device/get_normal_list',
  jz_error_list:domain+'dev/device/get_fault_list',
  jz_search:domain+"dev/basework/search",
  get_page:domain+"dev/basework/get_page",
  up_img:domain+"dev/upload_file",
  get_details:domain+"dev/device/get_details",//传入参数：wxid，access_token，S_id=基站设备id
  get_data:domain+"dev/basework/get_data",// 传入参数：access_token,wxid,id=基站id

  get_attr:domain+"dev/device/get_attr",// 传入参数：access_token,wxid,id=设备id

  get_jz_data:domain+"dev/index/get_data",
  jz_send_at:domain+"dev/index/send_at",

  get_home_data:domain+"dev/base/get_home_data",
  get_devchart:domain+"dev/base/get_devchart",




  get_login:domain+"dev/login/get_login",
  checkToken:domain+"dev/token/checktoken",

  getConfig:domain+"dev/mapconfig/get",
  dev_install:domain+"dev/device/install", //安装设备到基站   传入参数：access_token,wxid,d_sn=设备串号，b_id=基站id，d_list=设备code的逗号串

  device_del:domain+"dev/base/device_del", //基站删除设备   传入参数：access_token,wxid,d_sn=设备串号，code=设备code，
  save_img:domain+"dev/basework/save_img",//基站信息保存   传入参数：access_token,wxid, id=基站id，jd=经度 wd=纬度 img=图片 返回参数:status,msg,data  {}

  setupat:domain+"dev/device/setupat",//保存设备配置接口   传入参数：access_token,wxid,d_sn设备串号，post1...n从1开始到9字符串

  sendat:domain+"dev/device/sendat",//发送AT指令   传入参数：access_token,wxid,d_sn=设备串号,at_id=at命令id   返回参数:status,msg,data

  get_at_list:domain+"dev/eq/get_at_list",//获取设备指令列表   传入参数：access_token,wxid,e_id=设备id  返回参数:status,msg,data  {null}

  get_sin_info:domain+"dev/device/get_sin_info",//传入参数：access_token,wxid,d_sn=设备串号，code=设备代码
  get_date_range_data:domain+"dev/device/get_date_range_data",//传入参数：access_token,wxid,d_sn=设备串号，code=设备code， limit=返回记录数

  get_last_kw:domain+"dev/basework/get_last_kw",//传入参数：access_token,wxid,b_id=基站id  返回参数:status,msg,data  {aca电流，acv电压，ackw功率}

  get_dt_rang_list:domain+"dev/base/get_dt_rang_list",

}
export default api
